]> dgit.raspbian.org Git - gnome-shell.git/commit
extensionDownloader: Replace deprecated Soup.SessionAsync
authorMichael Lass <bevan@bi-co.net>
Thu, 14 May 2020 18:40:57 +0000 (20:40 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 14 May 2020 19:43:56 +0000 (19:43 +0000)
commita47e0f9845f936a71c9d466759d4585636e476fd
treee042b10250f03ebfc2f09beede3c453431f9217b
parent0737c8f4160e911c4208e201879514bbd601f0fd
extensionDownloader: Replace deprecated Soup.SessionAsync

Soup.SessionAsync by default sets timeout and idle_timeout to 0. This
causes connections to hang around in state CLOSE_WAIT forever after the
remote host has closed the connection.

To fix this, we could set timeout and idle_timeout manually. However,
Soup.SessionAsync is marked as deprecated anyway and should be replaced
by Soup.Session. Doing so also sets a default timeout of 60 seconds.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2774
js/ui/extensionDownloader.js